﻿CREATE PROCEDURE [acms].[SiteVersion_GetCurrent]
	@SiteId int
AS
	SELECT top 1 *
	From SiteVersion_View
	Where SiteId = @SiteId
		and Change <= getutcdate()
	order by change desc
RETURN 0;